// 起重机智能安全保障平台 - 仪表盘样式

.dashboard-container {
  width: 100%;
  height: 100vh;
  background-color: #050c1a;
  background-image:
    linear-gradient(rgba(40, 50, 70, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 50, 70, 0.1) 1px, transparent 1px);
  background-size: 20rpx 20rpx;
  color: #ffffff;
  padding: 16rpx;
  padding-top: var(--status-bar-height);
  box-sizing: border-box;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16rpx 10px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 24rpx;
  box-shadow: 0 2px 15px rgba(0, 229, 255, 0.3);
}

.header-time {
  font-size: 24rpx;
  color: #94a3b8;
}

.header-admin {
  display: flex;
  align-items: center;
  font-size: 24rpx;
  color: #ff7300;
  cursor: pointer;
  position: relative;
}

.header-admin::after {

  margin-left: 8rpx;
}

.header-admin::before {
  content: '👨‍💼';
}

.header-admin-wrapper {
  position: relative;
  cursor: pointer;
}

.page-title {
  font-size: 40rpx;
  font-weight: bold;
  text-align: center;
  margin-bottom: 32rpx;
  background: linear-gradient(90deg, #2196f3, #9c27b0, #4caf50);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 16rpx 0;
}

.admin-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: rgba(30, 41, 59, 0.95);
  border: 1px solid #1e293b;
  border-radius: 8rpx;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  min-width: 200rpx;
  margin-top: 8rpx;
}

.dropdown-item {
  display: flex;
  align-items: center;
  padding: 16rpx 20rpx;
  cursor: pointer;
  transition: background-color 0.3s ease;
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: rgba(66, 133, 244, 0.1);
}

.dropdown-icon {
  font-size: 24rpx;
  margin-right: 12rpx;
}

.dropdown-text {
  font-size: 24rpx;
  color: #e2e8f0;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16rpx;
  margin-bottom: 32rpx;
}

.menu-item {
  background-color: rgba(30, 41, 59, 0.7);
  padding: 24rpx 16rpx;
  text-align: center;
  border-radius: 8rpx;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(66, 133, 244, 0.4);
}

.menu-item:active {
  transform: scale(0.98);
}

// 不同菜单类型的特殊荧光效果
.menu-item[data-type="data"] {
  box-shadow: 0 0 15px rgba(0, 188, 212, 0.5);
}

.menu-item[data-type="status"] {
  box-shadow: 0 0 15px rgba(156, 39, 176, 0.5);
}

.menu-item[data-type="maintenance"] {
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

.menu-item[data-type="alerts"] {
  box-shadow: 0 0 15px rgba(255, 152, 0, 0.5);
}

.menu-item[data-type="reports"] {
  box-shadow: 0 0 15px rgba(63, 81, 181, 0.5);
}

.menu-item[data-type="system"] {
  box-shadow: 0 0 15px rgba(233, 30, 99, 0.5);
}

.menu-item-icon {
  font-size: 50rpx;
  margin-bottom: 8rpx;
  display: block;
}

.menu-item-text {
  font-size: 24rpx;
  color: #e2e8f0;
}

// 运行数据菜单样式 - 蓝色
.menu-item-running {
  background-color: rgba(33, 150, 243, 0.2);
  border-color: #2196f3;
  box-shadow: 0 0 16rpx rgba(33, 150, 243, 0.4);
}

.menu-item-running .menu-item-icon {
  color: #2196f3;
}

// 状态数据菜单样式 - 紫色
.menu-item-status {
  background-color: rgba(156, 39, 176, 0.2);
  border-color: #9c27b0;
  box-shadow: 0 0 16rpx rgba(156, 39, 176, 0.4);
}

.menu-item-status .menu-item-icon {
  color: #9c27b0;
}

// 基础运维菜单样式 - 绿色
.menu-item-maintenance {
  background-color: rgba(76, 175, 80, 0.2);
  border-color: #4caf50;
  box-shadow: 0 0 16rpx rgba(76, 175, 80, 0.4);
}

.menu-item-maintenance .menu-item-icon {
  color: #4caf50;
}

// 消息中心菜单样式 - 橙色
.menu-item-message {
  background-color: rgba(255, 115, 0, 0.2);
  border-color: #ff7300;
  box-shadow: 0 0 16rpx rgba(255, 115, 0, 0.4);
}

.menu-item-message .menu-item-icon {
  color: #ff7300;
}

// 报表中心菜单样式 - 蓝色
.menu-item-report {
  background-color: rgba(33, 150, 243, 0.2);
  border-color: #2196f3;
  box-shadow: 0 0 16rpx rgba(33, 150, 243, 0.4);
}

.menu-item-report .menu-item-icon {
  color: #2196f3;
}

// 系统管理菜单样式 - 紫色
.menu-item-system {
  background-color: rgba(156, 39, 176, 0.2);
  border-color: #9c27b0;
  box-shadow: 0 0 16rpx rgba(156, 39, 176, 0.4);
}

.menu-item-system .menu-item-icon {
  color: #9c27b0;
}

.content-section {
  background-color: rgba(30, 41, 59, 0.8);
  border-radius: 8rpx;
  padding: 24rpx;
  margin-bottom: 24rpx;
  box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.3);
}

.section-title {
  font-size: 30rpx;
  font-weight: bold;
  margin-bottom: 16rpx;
  color: #22d3ee;
  display: flex;
  align-items: center;
}

.section-title::before {
  content: '';
  display: inline-block;
  width: 8rpx;
  height: 24rpx;
  background-color: #22d3ee;
  margin-right: 12rpx;
  border-radius: 4rpx;
}

.welcome-text {
  font-size: 26rpx;
  color: #cbd5e1;
  margin-bottom: 24rpx;
  line-height: 1.6;
}

.device-status {
  background-color: rgba(15, 23, 42, 0.8);
  padding: 20rpx;
  border-radius: 8rpx;
  margin-bottom: 24rpx;
}

.device-status-item {
  font-size: 24rpx;
  color: #e2e8f0;
  margin-bottom: 12rpx;
  display: flex;
  justify-content: space-between;
}

.device-status-item:last-child {
  margin-bottom: 0;
}

.alerts-section {
  background-color: rgba(15, 23, 42, 0.8);
  padding: 20rpx;
  border-radius: 8rpx;
}

.alert-item {
  font-size: 24rpx;
  color: #e2e8f0;
  padding: 16rpx 0;
  border-bottom: 1px solid #1e293b;
  position: relative;
}

.alert-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.alert-item::before {
  content: '⚠️';
  position: absolute;
  left: -20rpx;
  top: 16rpx;
}

.maintenance-section {
  background-color: rgba(15, 23, 42, 0.8);
  padding: 20rpx;
  border-radius: 8rpx;
}

.maintenance-item {
  font-size: 24rpx;
  color: #e2e8f0;
  padding: 12rpx 0;
  border-bottom: 1px solid #1e293b;
}

.maintenance-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.maintenance-item::before {
  content: '•';
  margin-right: 12rpx;
  color: #4ade80;
  font-size: 30rpx;
  vertical-align: middle;
}
